var e = require("../@babel/runtime/helpers/interopRequireDefault").default;

Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var t = e(require("../service/index")), n = {
    getAuthInfo: function() {
        return t.default.post("/KCard/chg-assist/user/info");
    },
    auth: function(e) {
        return new Promise(function(n, o) {
            t.default.post("/KCard/chg-assist/user/auth", e).then(function(e) {
                "0" === e.code ? n(e) : (o(e), wx.showToast({
                    icon: "none",
                    title: e.message || e.msg,
                    duration: 3e3
                }));
            }).catch(function(e) {
                o(e), wx.showToast({
                    icon: "none",
                    title: "切换手机号码失败，请重试",
                    duration: 3e3
                });
            });
        });
    }
};

exports.default = n;